package com.chang.common.utils;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @program: erp-api
 * @description:
 * @author: chang
 * @create: 2025-02-28 14h
 **/

/**
 * 获取系统时间
 */
public class DateUtils {

    public static  String getSystemTimeYM(){
        LocalDate localDate = LocalDate.now();
        //格式化
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yMM");
        String tmp = localDate.format(formatter);
        tmp =tmp.substring(2);
        return tmp;
    }


}
